package com.imesne.office.excel.read;

import com.imesne.office.excel.model.ExcelSheet;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;

/**
 * Created by liyd on 17/6/30.
 */
public interface ExcelSheetReader {

    /**
     * 是否支持读取
     *
     * @param workbook   the workbook
     * @param sheet      the sheet
     * @param sheetIndex the sheet index
     * @return boolean boolean
     */
    boolean isSupportRead(Workbook workbook, Sheet sheet, int sheetIndex);

    /**
     * 读取excel Sheet
     *
     * @param workbook   the workbook
     * @param sheet      the sheet
     * @param sheetIndex the sheet index
     * @return excel sheet
     */
    ExcelSheet readExcelSheet(Workbook workbook, Sheet sheet, int sheetIndex);
}
